<%= content_for :css do %>
	<%= stylesheet_link_tag '/assets/tour' %>
	<style>
		#mainContent{height: <%= 110 + ((@events.count/3.0).ceil * 300) %>px;}
	</style>
<% end %>


<div id="orinfo"><%= link_to 'Home', root_path %> > Best Events </div>

<h1>Best Events</h1>

<ul class="gallery">
	<% @events.each do |event| %>
		<li>
			<%= link_to event_path(event, guided_tour: true) do%>
				<%= image_tag event.preview_img_src %>
				<div class="name"> <%= event.name %> </div>
			<% end %>
	  	</li>
  	<% end %>
</ul>
